<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
        $User = M("User"); // 实例化User对象
        $data = $User->select();
        $this->assign('list',$data);
        $this->display();
        //dump($data);
    }
}